Skip to content

Conversation

@naveen28204280
Copy link

This PR allows to

  • throw a compile-time error if none of runtime-tokio, runtime-smol, custom-runtime are enabled
  • create the custom-runtime feature which allows user to declare their own custom runtime

Copy link
Collaborator

@Ralith Ralith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Please also update the test scripts to pass with this change, as we discussed in the previous PR.

Note also that if you force-push to your branch, it updates your existing PR; you don't need to create a new one, and doing so is usually discouraged as it makes it hard to follow discussion.

use crate::Instant;

#[cfg(not(any(feature = "runtime-tokio", feature = "runtime-smol", feature = "custom-runtime")))]
compile_error!("no async runtime found. Please enable a runtimse such as runtime-tokio, runtime-smol or custom-runtime");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: "runtimse". Let's also word this as "a runtime feature" to provide a clearer breadcrumb to users who might not know what we're talking about.

Also please be consistent about capitalization and punctuation: if the text contains multiple sentences, then the first letter should be capitalized and there should be a trailing period.

@djc
Copy link
Member

djc commented Nov 26, 2025

Hi @naveen28204280 -- sorry, I didn't like the direction of this PR much so implemented an alternative in #2451. That means we no longer need this PR -- we still appreciate your efforts, though!

@djc djc closed this Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants